import config from "@/config"
import http from "@/utils/request"
export default {
	ct: {
		list: {
			url: `${config.API_URL}/hmext/ct/list`,
			name: "获取CT片",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		},
		patient: {
			url: `${config.API_URL}/hmext/ct/patient`,
			name: "获取患者",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		}
	},
	store: {
		list: {
			url: `${config.API_URL}/bole/store/list`,
			name: "获取门店",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		},
		update: {
			url: `${config.API_URL}/bole/store/update`,
			name: "更新门店信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		}
	},
	doctor: {
		list: {
			url: `${config.API_URL}/bole/doctor/list`,
			name: "获取医生信息",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		},
		update: {
			url: `${config.API_URL}/bole/doctor/update`,
			name: "更新医生信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		}
	},
	company: {
		list: {
			url: `${config.API_URL}/bole/company/list`,
			name: "获取政企信息",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		},
		update: {
			url: `${config.API_URL}/bole/company/update`,
			name: "更新政企信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		},
		create: {
			url: `${config.API_URL}/bole/company/create`,
			name: "创建政企信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		}
	},
	account: {
		list: {
			url: `${config.API_URL}/bole/account/list`,
			name: "获取信息",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		},
		update: {
			url: `${config.API_URL}/bole/account/update`,
			name: "更新信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		},
		create: {
			url: `${config.API_URL}/bole/account/create`,
			name: "创建信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		}
	},
	member: {
		list: {
			url: `${config.API_URL}/bole/member/list`,
			name: "获取信息",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		},
		update: {
			url: `${config.API_URL}/bole/member/update`,
			name: "更新信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		},
		create: {
			url: `${config.API_URL}/bole/member/create`,
			name: "创建信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		}
	},
	registration: {
		list: {
			url: `${config.API_URL}/bole/registration/list`,
			name: "获取信息",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		}
	},
	department: {
		list: {
			url: `${config.API_URL}/bole/department/list`,
			name: "获取信息",
			get: async function(param) {
				return await http.get(this.url, param);
			}
		},
		update: {
			url: `${config.API_URL}/bole/department/update`,
			name: "更新信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		},
		create: {
			url: `${config.API_URL}/bole/department/create`,
			name: "创建信息",
			post: async function(param) {
				return await http.post(this.url, param);
			}
		}
	}
}
